//搜搜结果接口请求参数类型


export interface reqSearchResultParamsType{
  kw:string,
  core:string,
  page:number,
  rows:number,
  condition?:string
  paidFilter?:boolean,
  is_paid?:boolean | string,
  category_id?:number|string
 fq?:any

};












//#region  搜索详情页数据类型
export interface searchDetailDataType {
  ret: 0;
  data: DetailDataType;
  context: contextDataType;
}

//#region data  数据类型
export interface DetailDataType {
  albumViews: albumViewsType; //  专辑
  trackViews: trackViewsType; //  声音
  userViews: userViewsType; //  主播
}

//    albumViews  类型    专辑
//#region albumViews 类型
export interface albumViewsType {
  albums: {
    albumInfo: albumInfoType;
    pageUriInfo: pageUriInfoType;
  }[];
  totalPage: number;
  start: number;
  pageSize: number;
  currentPage: number;
  total: number;
}
//    albumInfo 类型
export interface albumInfoType {
  play: number;
  user_source: string;
  cover_path: string;
  title: string;
  uid: number;
  category_id: number;
  intro: string;
  recommend_reason: string;
  id: number;
  is_paid: boolean;
  is_finished: number;
  tags: string;
  category_title: string;
  created_at: number;
  albumType: number;
  type: string;
  is_v: boolean;
  refund_support_type: number;
  count_comment: number;
  score: number;
  price_type_id: number;
  updated_at: number;
  isVipFree: boolean;
  nickname: string;
  custom_title: string;
  verify_type: number;
  vipFreeType: number;
  albumVipPayType: number;
  serialState: number;
  price_type_enum: number;
  tracks: number;
  isNoCopyright: boolean;
  comments_count: number;
  price_types: [];
}
//    pageUriInfo 类型
export interface pageUriInfoType {
  id: number;
  categoryId: number;
  categoryName: string;
  categoryCode: string;
  pinyin: string;
  url: string;
}

//#endregion

export interface tracksItem{
  trackInfo: trackInfoType;
  pageUriInfo: pageUriInfoType;
}



//    trackViews  类型    声音
//#region   trackViews 类型
export interface trackViewsType {
  tracks: tracksItem[];
  totalPage: number;
  start: number;
  pageSize: number;
  currentPage: number;
  total: number;
}
//    trackInfo 类型
export interface trackInfoType {
  created_at: number;
  title: string;
  duration: number;
  uid: number;
  category_id: number;
  updated_at: number;
  nickname: string;
  is_paid: boolean;
  id: number;
  verify_type: number;
  category_title: string;
  album_id: number;
  album_title: string;
  count_play: number;
  count_comment: number;
  count_share: number;
  count_like: number;
  album_cover_path: string;
  cover_path: string;
  type: number;
  play_path: string;
}
//    pageUriInfo 类型
export interface pageUriInfoType {
  id: number;
  categoryId: number;
  categoryName: string;
  categoryCode: string;
  pinyin: string;
  url: string;
}
//#endregion

//    userViews   类型    主播
//#region userViews   类型

export interface usersType{
  userInfo: userInfoType;
  statCountInfo: statCountInfoType;
  url: string;
}

export interface userViewsType {
  users: usersType[];
  start: number;
  totalPage:number,
  pageSize: number;
  currentPage: number;
  total: number;
}
//    userInfo 类型
export interface userInfoType {
  uid: number;
  pTtitle: string;
  create_time: number;
  gender: string;
  isVerified: boolean;
  logoPic: string;
  last_update: number;
  nickname: string;
  isLoginBan: boolean;
  smallPic: string;
  personDescribe: string;
  vLogoType: number;
  verifyType: number;
  tracks_counts: number;
  followers_counts: number;
  followings_counts: number;
  updated_at: number;
  isVip: boolean;
  userGrade: number;
  anchorGrade: number;
}
//    statCountInfo 类型
export interface statCountInfoType {
  id: number;
  albumCount: number;
}
//#endregion

//#endregion

//#region context 数据类型
export interface contextDataType {
  currentUser: {
    id: number;
    nickname: string;
    isVip: boolean;
    isNewCreated: boolean;
    logo: string;
  };
  basicRequestContext: {
    isHybrid: boolean;
    isEmbedded3rdPartner: boolean;
    isKnowAmbassadorDistributor: boolean;
    isM2WapHost: boolean;
  };
}
//#endregion

//#endregion
